package com.springcloud.xxkfz.feign;

import com.springcloud.xxkfz.feign.fullback.AccountFeignFallBack;
import com.springcloud.xxkfz.vo.AccountVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "account-service", fallback = AccountFeignFallBack.class)
public interface AccountFeign {

	@GetMapping("/account-service/account/list")
	List<AccountVO> list();

	@GetMapping("/account-service/account/{id}")
	AccountVO getAccountById(@PathVariable("id") String id);
}
